package com.edu.project.http;



import com.edu.project.http.interfaces.HttpResultListener;

import rx.Subscriber;

/**
 * Created by sheng on 2016/11/4.
 */
public class HttpResultSubscriber<T> extends Subscriber<T> implements HttpResultListener<T> {

    @Override
    public void onCompleted() {

    }

    @Override
    public void onError(Throwable e) {
        onResultError(e);
    }

    @Override
    public void onNext(T t) {
        onResultSuccess(t);
    }


    @Override
    public void onResultSuccess(T t) {

    }


    @Override
    public void onResultError(Throwable e) {

    }
}
